import UIAbility from '@ohos.app.ability.UIAbility';
import window from '@ohos.window';
import GlobalParam from '../utils/GlobalParam';

export default class EntryAbility extends UIAbility {

    onWindowStageCreate(windowStage: window.WindowStage) {
        GlobalParam.appContext = this.context
        // 全屏配置
        windowStage.getMainWindow((err, mainWindow) => {
            if (err.code) {
                return;
            }
            mainWindow.setWindowSystemBarEnable([])
        })
        windowStage.loadContent('pages/Index');
    }

}
